package com.luck.nacos.config;

import com.netflix.loadbalancer.IRule;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@RibbonClient(name = "nacos-a", configuration = MyRule.class)
@RibbonClients(defaultConfiguration = MyRule.class)
public class RibbonConfig {
    @Bean
    public IRule ribbonRule() {
        return new MyRule();
    }
}
